<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><{:C('site_name')}></title>
<meta name="keywords" content="<{:C('keyword')}>" />
<meta name="description" content="<{:C('content')}>" />
<link rel="stylesheet" href="<{:STATICS}>/css/bootstrap.min.css" type="text/css" media="all" />
<link rel="stylesheet" href="<{:RES}>/css/admin.css" type="text/css"/>
</head>
<script type="text/javascript" src="<{:STATICS}>/js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="<{:STATICS}>/js/bootstrap.min.js"></script>
<script type="text/javascript" src="<{:STATICS}>/js/jquery.artDialog.js?skin=aero"></script>
<script type="text/javascript" src="<{:STATICS}>/js/iframeTools.js"></script>
<script type="text/javascript" src="<{:STATICS}>/js/jquery.validate.min.js"></script>
<script type="text/javascript" src="<{:STATICS}>/js/jquery.form.min.js"></script>
<script type="text/javascript" src="<{:RES}>/js/common.js"></script>
<body>
<script type="text/javascript">
function jumpUrl(){
  v = document.getElementById("path").options[document.getElementById("path").selectedIndex].value;
  url="<{:U('Reply/select')}>&path=" + v;
  window.location.href=url;
}
</script>
<div class="iframeBox">
	<form class="form-inline" method="get" action="index.php">
		<div class="form-group">
    		<label>分类：</label>
    		<select name="path" id="path" class="form-control input-sm" onchange="jumpUrl()">
				<option value="">全部</option>
				<volist name="sclass" id="vo">
				<option value='<{$vo['path']}>'><php>
		            for($i=0; $i<$vo['count']*2; $i++){
		               echo '&nbsp;&nbsp;';            
		            }
		        </php><{$vo['name']}></option>
				</volist>
			</select>
  		</div>

  		<div class="form-group">
    		<label>关键词：</label>
    		<input type="text" class="form-control input-sm" name="key">
  		</div>
		<button type="submit" class="btn btn-default btn-sm">搜索</button>
		<input type="hidden" name="g" value="Admin" />
		<input type="hidden" name="m" value="Reply" />
		<input type="hidden" name="a" value="select" />
	</form>
	<TABLE class="table table-hover table-condensed">
		<THEAD>
			<tr>
		  	<TH>标题</TH>  
		  	<TH class="text-right">操作</TH>
			</tr>
		</THEAD>
		<TBODY>             
		<volist name="list" id="vo">
		<tr>
			<td><{$vo.title}></td>
		  	<td class="text-right">
		  	<a href="###" onclick="returnHomepage('<{$vo.title}>_<{$vo.id}>_<{$vo.picname}>')">选中</a>
		  	</td>
		</tr>
		</volist>
		</TBODY>
	</TABLE>
	<div class="row">	
		<div class="col-md-12">
			<div class="page">
				<nav>
  					<ul class="pagination"><{$page}></ul>
  				</nav>
  			</div>
		</div>
	</div>
</div>

<script>
$("#path").val("<{$path}>");
var domid=art.dialog.data('domid');
// 返回数据到主页面
function returnHomepage(url){
	var origin = artDialog.open.origin;
	var dom = origin.document.getElementById(domid);
	var domsrcid=domid+'_src';
	if(origin.document.getElementById(domsrcid)){
	origin.document.getElementById(domsrcid).src=url;
	}
	var str= new Array(); //定义一数组 
	str=url.split("_"); //字符分割 
	var str = '<li id="aID'+str[1]+'"><img src="'+str[2]+'" /><p>'+str[0]+'</p> <input type="hidden" name="articleID[]" value="'+str[1]+'" /> <a href="javascript:removeDiv('+str[1]+')">删除</a></li>';
	
	dom.innerHTML=dom.innerHTML+str;
	setTimeout("art.dialog.close()", 100 )
}
</script>

</body>
</html>
